import {port} from './en1.js'
import koa from "koa"
import Router from 'koa-router'
const app = new koa
const router = new Router
console.log(`服务运行于http://localhost:${port}`);

router.get('/',(req,res)=>{
    req.body = "这是首页"
})
router.get('/wexin',(req,res)=>{
    req.body = "微信"
})
router.get('/alipay',(req,res)=>{
    req.body = "支付宝"
})
router.get('/ds',(req,res)=>{
    req.body = "yyds"
})
 router.get('/app',(req,res)=>{
    console.log(req.querystring);
    
})
router.post('/login',(req,res)=>{
   console.log(req.querystring);
   
    
})

app.use(router.routes())
console.log(app);



app.listen(port)